import VueRouter from 'vue-router'

// 导入组件
import HomeContainer from "./components/tabber/HomeContainer.vue"
import MemberContainer from './components/tabber/MemberContainer.vue'
import ShopcarContainer from './components/tabber/ShopcarContainer.vue'
import SearchContainer from './components/tabber/SearchContainer.vue'

// 3. 创建路由对象
var router = new VueRouter({
  routes: [ // 目前这个路由是空的
    {path:'/home',component:HomeContainer},
    {path:'/member',component:MemberContainer},
    {path:'/shopcar',component:ShopcarContainer},
    {path:'/Search',component:SearchContainer}
  ],
  linkActiveClass:'mui-active'//将默认的高亮样式，替换为自己的mui-active
})

// 把路由对象暴露出去
export default router